From: Florian Müllner Date: Wed, 11 Mar 2026 21:37:20 +0000 (+0100) Subject: main: Also respect --force-animations flag in remote sessions X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~28^2~4^2^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b8fc2555babff4b4d1b807e18bb925b156d2b45d;p=gnome-shell.git main: Also respect --force-animations flag in remote sessions When commit 33d3a6564 added support for the --force-animations flag, it explicitly excluded remote sessions. There has been some interest in enabling the flag for remote sessions as well recently, and as nobody seems to remember why they were excluded, do just that. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9099 Part-of: (cherry picked from commit 39d622f3a26a87ba3f087b47d501fdb7e1eadd24) --- diff --git a/js/ui/main.js b/js/ui/main.js index 4a011f262..4be8cea60 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -1063,12 +1063,12 @@ class AnimationsSettings { } _shouldEnableAnimations() { - if (this._handles.size > 0) - return false; - if (global.force_animations) return true; + if (this._handles.size > 0) + return false; + const backend = global.backend; if (!backend.is_rendering_hardware_accelerated()) return false;